package mylab.demo.usm.biz.service;

import mylab.demo.usm.biz.entity.SysUser;
import mylab.demo.usm.biz.entity.SysUserBinding;
import mylab.starters.mybatis.template.SuperService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Sylar
 * @since 2021-11-24
 */
public interface SysUserService extends SuperService<String, SysUser> {

    SysUser getByUsername(String username);

    SysUser getByPlatformAndUid(String platformId, String uid);

    boolean validPassword(Long userId, String plainPassword);

    SysUser createUser(SysUserBinding userBinding);
}
